package top.zhangjianyong.blog.params.comment;

import jakarta.validation.constraints.NotNull;

/**
 * 评论点赞参数
 *
 * @author zhangjianyong
 * @since 2024/12/19
 */
public record CommentLikeParam(
    @NotNull(message = "评论ID不能为空") Long commentId, Boolean isLike // true-点赞, false-取消点赞
    ) {
  public CommentLikeParam {
    if (isLike == null) isLike = true;
  }
}
